
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[spVehicle_GetVehicle]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[spVehicle_GetVehicle]
GO

GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Eric Liew
-- Create date: 6/2/2009
-- Description:	Get a Vehicle
-- =============================================
CREATE PROCEDURE [dbo].[spVehicle_GetVehicle]
{
		@VehicleID INT	
}
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	SELECT 
		VehicleId,
		EngineNo,
		ManufactureDate,
		CarExpiryDate,
		RegistrationDueDate,
		InspectionDate,
		PurchasePrice,
		OwnerId,
		PurchaseDate,
		Rego,
		BodyType,
		Model,
	FROM Vehicle
	Where VehicleId = @VehicleID
 

END
GO
